package com.gy.entity.Form;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("result_form_data")
public class FormEntity {

    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField(value = "rule_build")  // 修改为小写加下划线形式
    private String ruleBuild;

    @TableField(value = "name")
    private String name;

    @TableField(value = "option_build")  // 修改为小写加下划线形式
    private String optionBuild;

    @TableField(value = "form_data")
    private String formData;  // 存储用户填写的数据

    private LocalDateTime createdAt;


    @ApiModelProperty("PDF URL")
    @TableField("pdf_url")
    private String pdfPath;
    @ApiModelProperty("创建者")
    @TableField("creator")
    private String creator;

}
